package com.yuqing.sentimentapp.statistics;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;

import com.linkface.baselibrary.BuildConfig;
import com.yuqing.sentimentapp.R;
import com.yuqing.sentimentapp.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

public class StatisticsActivity extends BaseActivity {

    @BindView(R.id.container_fragment)
    FrameLayout mContainerFragment;
    @BindView(R.id.iv_back)
    ImageView mIvBack;

    public static void goActivity(Context context) {
        Intent intent = new Intent(context, StatisticsActivity.class);
        context.startActivity(intent);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_statistics;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView() {
        StatisticsFragment mStatisticsFragment = StatisticsFragment.start(BuildConfig.Base_URL + "/finebi/count", true, false);
        getSupportFragmentManager().beginTransaction().replace(R.id.container_fragment, mStatisticsFragment).commitNowAllowingStateLoss();
    }

    @OnClick(R.id.iv_back)
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.iv_back:
                finish();
                break;
        }
    }
}
